export default {
  saveNewEvent: (data: any) => {
    console.log('backsaveNewEvent', data)
    chrome.storage.local.get(['eventData'], (result) => {
      console.log('backsaveNewEvent', result.eventData, data)
      if (!result.eventData){
        result.eventData = []
      }
      result.eventData.push(data)
      chrome.storage.local.set({eventData: result.eventData})
    })
  },
  clearNewEvent: () => {
    chrome.storage.local.remove('eventData')
  }
}
